]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Don't open the tray from a dwell if we're in a modal grab
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 20 Sep 2012 22:36:52 +0000 (19:36 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sat, 22 Sep 2012 18:39:22 +0000 (15:39 -0300)
If we're in an alt-tab popup or modal dialog, we shouldn't pop up the tray
at all.

https://bugzilla.gnome.org/show_bug.cgi?id=684458

js/ui/messageTray.js

index 6892ba193160386ba5193fce8a7529fd7fd3d16f..cfc2e6ce186540c70bc3c353227ce7e74e8d1714 100644 (file)
@@ -1561,6 +1561,9 @@ const MessageTray = new Lang.Class({
     },
 
     _trayDwellTimeout: function() {
+        if (Main.modalCount > 0)
+            return false;
+
         // If the user interacted with the focus window since we started the tray
         // dwell (by clicking or typing), don't activate the message tray
         let focusWindow = global.display.focus_window;